﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace VueShopApi.Entities 
{
	/// <summary>
	/// 收货人表
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "sp_consignee", DisableSyncStructure = true)]
	public partial class SpConsignee 
	{
		/// <summary>
		/// 主键id
		/// </summary>
		[JsonProperty("cgn_id"), Column(Name = "cgn_id", IsPrimary = true, IsIdentity = true)]
		public int CgnId { get; set; }

		/// <summary>
		/// 收货人地址
		/// </summary>
		[JsonProperty("cgn_address"), Column(Name = "cgn_address", StringLength = 200, IsNullable = false)]
		public string CgnAddress { get; set; }

		/// <summary>
		/// 邮编
		/// </summary>
		[JsonProperty("cgn_code"), Column(Name = "cgn_code", DbType = "char(6)", IsNullable = false)]
		public string CgnCode { get; set; }

		/// <summary>
		/// 收货人名称
		/// </summary>
		[JsonProperty("cgn_name"), Column(Name = "cgn_name", StringLength = 32, IsNullable = false)]
		public string CgnName { get; set; }

		/// <summary>
		/// 收货人电话
		/// </summary>
		[JsonProperty("cgn_tel"), Column(Name = "cgn_tel", StringLength = 20, IsNullable = false)]
		public string CgnTel { get; set; }

		/// <summary>
		/// 删除时间
		/// </summary>
		[JsonProperty("delete_time"), Column(Name = "delete_time")]
		public int? DeleteTime { get; set; }

		/// <summary>
		/// 会员id
		/// </summary>
		[JsonProperty("user_id"), Column(Name = "user_id")]
		public int UserId { get; set; }

	}

}
